﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using System.IO;

using System.ComponentModel.DataAnnotations;

namespace AzureGames.Domain.Models
{
    public class GameUser
    {
        public GameUser()
        {

        }
        public GameUser(Model.User user)
        {

            Name = user.Name;
            ID = user.ID;
            FirstName = user.FirstName;
            LastName = user.LastName;
            AvatarImage = user.AvatarImage;
            Email = user.Email;
        }

        [StringLength(30, ErrorMessageResourceName = "UserDisplayNameStringLengthValidationError", ErrorMessageResourceType = typeof(Resources))]
        [Required(AllowEmptyStrings = false, ErrorMessageResourceName = "UserDisplayNameRequired", ErrorMessageResourceType = typeof(Resources))]
        [Display(Name = "UserDisplayNameLabelText", ResourceType = typeof(Resources))]
        public string Name { get; set; }
        public string ID { get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public Guid AvatarImage { get; set; }
        public string Email { get; set; }
    }
}
